const rules = {
    name: [
        {required: true, message: "请输入名称", trigger: "blur"},
        {min: 2, max: 20, message: "长度在 2 到 20 个字符", trigger: "blur"}
    ],
    apiUri: [{required: true, message: "请输入路由", trigger: "blur"},
        {min: 2, max: 2000, message: "长度在 2 到 2000 个字符", trigger: "blur"}],
    enableFlag: [{required: true, message: "选择是否启动", trigger: "blur"}],
    menuType: [{required: true, message: "目录类型", trigger: "blur"}],
    apiType: [{required: true, message: "接口类型", trigger: "blur"}],
    must: [{required: true, message: "是否必填", trigger: "blur"}],
    fieldType: [{required: true, message: "字段类型不能为空", trigger: "blur"}],
    apiId: [{required: true, message: "选择接口", trigger: "blur"}],
    fieldCommon: [{required: true, message: '通用描述不能为空。', trigger: 'blur'}],
    fieldName: [{required: true, message: '字段名称不能为空', trigger: 'blur'}]
}

export default {
    rules
}